if(typeof jwplayer=="undefined"){var jwplayer=function(b){if(jwplayer.api){return jwplayer.api.selectPlayer(b);}};var $jw=jwplayer;jwplayer.version="5.6.1768 (Licensed version)";(function(c){c.utils=function(){};c.utils.typeOf=function(a){var b=typeof a;if(b==="object"){if(a){if(a instanceof Array){b="array";}}else{b="null";}}return b;};c.utils.extend=function(){var f=c.utils.extend["arguments"];if(f.length>1){for(var a=1;a-1){return a.substr(a.lastIndexOf(".")+1,a.length).toLowerCase();}return;};c.utils.html=function(b,a){b.innerHTML=a;};c.utils.wrap=function(b,a){b.parentNode.replaceChild(a,b);a.appendChild(b);};c.utils.ajax=function(a,b,j){var h;if(window.XMLHttpRequest){h=new XMLHttpRequest();}else{h=new ActiveXObject("Microsoft.XMLHTTP");}h.onreadystatechange=function(){if(h.readyState===4){if(h.status===200){if(b){b(h);}}else{if(j){j(a);}}}};try{h.open("GET",a,true);h.send(null);}catch(i){if(j){j(a);}}return h;};c.utils.load=function(b,a,f){b.onreadystatechange=function(){if(b.readyState===4){if(b.status===200){if(a){a();}}else{if(f){f();}}}};};c.utils.find=function(a,b){return a.getElementsByTagName(b);};c.utils.append=function(b,a){b.appendChild(a);};c.utils.isIE=function(){return((!+"\v1")||(typeof window.ActiveXObject!="undefined"));};c.utils.isLegacyAndroid=function(){var a=navigator.userAgent.toLowerCase();return(a.match(/android 2.[012]/i)!==null);};c.utils.isIOS=function(){var a=navigator.userAgent.toLowerCase();return(a.match(/iP(hone|ad)/i)!==null);};c.utils.getFirstPlaylistItemFromConfig=function(f){var b={};var a;if(f.playlist&&f.playlist.length){a=f.playlist[0];}else{a=f;}b.file=a.file;b.levels=a.levels;b.streamer=a.streamer;b.playlistfile=a.playlistfile;b.provider=a.provider;if(!b.provider){if(b.file&&(b.file.toLowerCase().indexOf("youtube.com")>-1||b.file.toLowerCase().indexOf("youtu.be")>-1)){b.provider="youtube";}if(b.streamer&&b.streamer.toLowerCase().indexOf("rtmp://")==0){b.provider="rtmp";}if(a.type){b.provider=a.type.toLowerCase();}}return b;};c.utils.getOuterHTML=function(i){if(i.outerHTML){return i.outerHTML;}else{var h=i.parentNode;var j=document.createElement(h.tagName);var a=document.createElement(i.tagName);h.replaceChild(a,i);j.appendChild(i);var b=j.innerHTML;h.replaceChild(i,a);return b;}};c.utils.setOuterHTML=function(b,h){if(b.outerHTML){b.outerHTML=h;}else{var a=document.createElement("div");a.innerHTML=h;var j=document.createRange();j.selectNodeContents(a);var i=j.extractContents();b.parentNode.insertBefore(i,b);b.parentNode.removeChild(b);}};c.utils.hasFlash=function(){if(typeof navigator.plugins!="undefined"&&typeof navigator.plugins["Shockwave Flash"]!="undefined"){return true;}if(typeof window.ActiveXObject!="undefined"){try{new ActiveXObject("ShockwaveFlash.ShockwaveFlash");return true;}catch(a){}}return false;};c.utils.getPluginName=function(a){if(a.lastIndexOf("/")>=0){a=a.substring(a.lastIndexOf("/")+1,a.length);}if(a.lastIndexOf("-")>=0){a=a.substring(0,a.lastIndexOf("-"));}if(a.lastIndexOf(".swf")>=0){a=a.substring(0,a.lastIndexOf(".swf"));}if(a.lastIndexOf(".js")>=0){a=a.substring(0,a.lastIndexOf(".js"));}return a;};c.utils.getPluginVersion=function(a){if(a.lastIndexOf("-")>=0){if(a.lastIndexOf(".js")>=0){return a.substring(a.lastIndexOf("-")+1,a.lastIndexOf(".js"));}else{if(a.lastIndexOf(".swf")>=0){return a.substring(a.lastIndexOf("-")+1,a.lastIndexOf(".swf"));}else{return a.substring(a.lastIndexOf("-")+1);}}}return"";};c.utils.getAbsolutePath=function(b,i){if(i===undefined){i=document.location.href;}if(b===undefined){return undefined;}if(d(b)){return b;}var a=i.substring(0,i.indexOf("://")+3);var l=i.substring(a.length,i.indexOf("/",a.length+1));var o;if(b.indexOf("/")===0){o=b.split("/");}else{var n=i.split("?")[0];n=n.substring(a.length+l.length+1,n.lastIndexOf("/"));o=n.split("/").concat(b.split("/"));}var p=[];for(var m=0;m0&&(f<0||(f>a)));}c.utils.pluginPathType={ABSOLUTE:"ABSOLUTE",RELATIVE:"RELATIVE",CDN:"CDN"};c.utils.getPluginPathType=function(g){if(typeof g!="string"){return;}g=g.split("?")[0];var b=g.indexOf("://");if(b>0){return c.utils.pluginPathType.ABSOLUTE;}var h=g.indexOf("/");var a=c.utils.extension(g);if(b<0&&h<0&&(!a||!isNaN(a))){return c.utils.pluginPathType.CDN;}return c.utils.pluginPathType.RELATIVE;};c.utils.mapEmpty=function(b){for(var a in b){return false;}return true;};c.utils.mapLength=function(b){var f=0;for(var a in b){f++;}return f;};c.utils.log=function(a,b){if(typeof console!="undefined"&&typeof console.log!="undefined"){if(b){console.log(a,b);}else{console.log(a);}}};c.utils.css=function(i,a,j){if(i!==undefined){for(var h in a){try{if(typeof a[h]==="undefined"){continue;}else{if(typeof a[h]=="number"&&!(h=="zIndex"||h=="opacity")){if(isNaN(a[h])){continue;}if(h.match(/color/i)){a[h]="#"+c.utils.strings.pad(a[h].toString(16),6);}else{a[h]=Math.ceil(a[h])+"px";}}}i.style[h]=a[h];}catch(b){}}}};c.utils.isYouTube=function(a){return(a.indexOf("youtube.com")>-1||a.indexOf("youtu.be")>-1);};c.utils.transform=function(b,a){b.style.webkitTransform=a;b.style.MozTransform=a;b.style.OTransform=a;};c.utils.stretch=function(q,a,b,s,n,r){if(typeof b=="undefined"||typeof s=="undefined"||typeof n=="undefined"||typeof r=="undefined"){return;}var u=b/n;var t=s/r;var o=0;var p=0;a.style.overflow="hidden";c.utils.transform(a,"");var v={};switch(q.toUpperCase()){case c.utils.stretching.NONE:v.width=n;v.height=r;break;case c.utils.stretching.UNIFORM:if(u>t){v.width=n*t;v.height=r*t;}else{v.width=n*u;v.height=r*u;}break;case c.utils.stretching.FILL:if(u>t){v.width=n*u;v.height=r*u;}else{v.width=n*t;v.height=r*t;}break;case c.utils.stretching.EXACTFIT:c.utils.transform(a,["scale(",u,",",t,")"," translate(0px,0px)"].join(""));v.width=n;v.height=r;break;default:break;}v.top=(s-v.height)/2;v.left=(b-v.width)/2;c.utils.css(a,v);};c.utils.stretching={NONE:"NONE",FILL:"FILL",UNIFORM:"UNIFORM",EXACTFIT:"EXACTFIT"};c.utils.deepReplaceKeyName=function(a,j,l){switch(c.utils.typeOf(a)){case"array":for(var b=0;b0){_listeners[type][listenerIndex].count=_listeners[type][listenerIndex].count-1;}}}}}for(var globalListenerIndex=0;globalListenerIndex<_globallisteners.length;globalListenerIndex++){try{_globallisteners[globalListenerIndex].listener(data);}catch(err){jwplayer.utils.log("There was an error while handling a listener: "+err.toString(),_globallisteners[globalListenerIndex].listener);}if(_globallisteners[globalListenerIndex]){if(_globallisteners[globalListenerIndex].count===1){delete _globallisteners[globalListenerIndex];}else{if(_globallisteners[globalListenerIndex].count>0){_globallisteners[globalListenerIndex].count=_globallisteners[globalListenerIndex].count-1;}}}}};};})(jwplayer);(function(d){var c={};d.utils.animations=function(){};d.utils.animations.transform=function(b,a){b.style.webkitTransform=a;b.style.MozTransform=a;b.style.OTransform=a;b.style.msTransform=a;};d.utils.animations.transformOrigin=function(b,a){b.style.webkitTransformOrigin=a;b.style.MozTransformOrigin=a;b.style.OTransformOrigin=a;b.style.msTransformOrigin=a;};d.utils.animations.rotate=function(b,a){d.utils.animations.transform(b,["rotate(",a,"deg)"].join(""));};d.utils.cancelAnimation=function(a){delete c[a.id];};d.utils.fadeTo=function(a,q,r,n,o,s){if(c[a.id]!=s&&s!==undefined){return;}var t=new Date().getTime();if(s>t){setTimeout(function(){d.utils.fadeTo(a,q,r,n,0,s);},s-t);}a.style.display="block";if(n===undefined){n=a.style.opacity===""?1:a.style.opacity;}if(a.style.opacity==q&&a.style.opacity!==""&&s!==undefined){if(q===0){a.style.display="none";}return;}if(s===undefined){s=t;c[a.id]=s;}if(o===undefined){o=0;}var m=(t-s)/(r*1000);m=m>1?1:m;var b=q-n;var p=n+(m*b);if(p>1){p=1;}else{if(p<0){p=0;}}a.style.opacity=p;if(o>0){c[a.id]=s+o*1000;d.utils.fadeTo(a,q,r,n,0,c[a.id]);return;}setTimeout(function(){d.utils.fadeTo(a,q,r,n,0,s);},10);};})(jwplayer);(function(b){b.utils.arrays=function(){};b.utils.arrays.indexOf=function(f,e){for(var a=0;a-1){f.splice(a,1);}};})(jwplayer);(function(b){b.utils.extensionmap={"3gp":{html5:"video/3gpp",flash:"video"},"3gpp":{html5:"video/3gpp"},"3g2":{html5:"video/3gpp2",flash:"video"},"3gpp2":{html5:"video/3gpp2"},flv:{flash:"video"},f4a:{html5:"audio/mp4"},f4b:{html5:"audio/mp4",flash:"video"},f4v:{html5:"video/mp4",flash:"video"},mov:{html5:"video/quicktime",flash:"video"},m4a:{html5:"audio/mp4",flash:"video"},m4b:{html5:"audio/mp4"},m4p:{html5:"audio/mp4"},m4v:{html5:"video/mp4",flash:"video"},mp4:{html5:"video/mp4",flash:"video"},rbs:{flash:"sound"},aac:{html5:"audio/aac",flash:"video"},mp3:{html5:"audio/mp3",flash:"sound"},ogg:{html5:"audio/ogg"},ogv:{html5:"video/ogg"},webm:{html5:"video/webm"},m3u8:{html5:"audio/x-mpegurl"},gif:{flash:"image"},jpeg:{flash:"image"},jpg:{flash:"image"},swf:{flash:"image"},png:{flash:"image"},wav:{html5:"audio/x-wav"}};})(jwplayer);(function(n){n.utils.mediaparser=function(){};var l={element:{width:"width",height:"height",id:"id","class":"className",name:"name"},media:{src:"file",preload:"preload",autoplay:"autostart",loop:"repeat",controls:"controls"},source:{src:"file",type:"type",media:"media","data-jw-width":"width","data-jw-bitrate":"bitrate"},video:{poster:"image"}};var m={};n.utils.mediaparser.parseMedia=function(a){return o(a);};function p(a,b){if(b===undefined){b=l[a];}else{n.utils.extend(b,l[a]);}return b;}function o(a,e){if(m[a.tagName.toLowerCase()]&&(e===undefined)){return m[a.tagName.toLowerCase()](a);}else{e=p("element",e);var f={};for(var d in e){if(d!="length"){var b=a.getAttribute(d);if(!(b===""||b===undefined||b===null)){f[e[d]]=a.getAttribute(d);}}}var c=a.style["#background-color"];if(c&&!(c=="transparent"||c=="rgba(0, 0, 0, 0)")){f.screencolor=c;}return f;}}function k(f,c){c=p("media",c);var b=[];var d=n.utils.selectors("source",f);for(var a in d){if(!isNaN(a)){b.push(j(d[a]));}}var e=o(f,c);if(e.file!==undefined){b[0]={file:e.file};}e.levels=b;return e;}function j(a,b){b=p("source",b);var c=o(a,b);c.width=c.width?c.width:0;c.bitrate=c.bitrate?c.bitrate:0;return c;}function i(a,b){b=p("video",b);var c=k(a,b);return c;}m.media=k;m.audio=k;m.source=j;m.video=i;})(jwplayer);(function(b){b.utils.loaderstatus={NEW:"NEW",LOADING:"LOADING",ERROR:"ERROR",COMPLETE:"COMPLETE"};b.utils.scriptloader=function(f){var e=b.utils.loaderstatus.NEW;var a=new b.events.eventdispatcher();b.utils.extend(this,a);this.load=function(){if(e==b.utils.loaderstatus.NEW){e=b.utils.loaderstatus.LOADING;var c=document.createElement("script");c.onload=function(d){e=b.utils.loaderstatus.COMPLETE;a.sendEvent(b.events.COMPLETE);};c.onerror=function(d){e=b.utils.loaderstatus.ERROR;a.sendEvent(b.events.ERROR);};c.onreadystatechange=function(){if(c.readyState=="loaded"||c.readyState=="complete"){e=b.utils.loaderstatus.COMPLETE;a.sendEvent(b.events.COMPLETE);}};document.getElementsByTagName("head")[0].appendChild(c);c.src=f;}};this.getStatus=function(){return e;};};})(jwplayer);(function(b){b.utils.selectors=function(a,e){if(e===undefined){e=document;}a=b.utils.strings.trim(a);var f=a.charAt(0);if(f=="#"){return e.getElementById(a.substr(1));}else{if(f=="."){if(e.getElementsByClassName){return e.getElementsByClassName(a.substr(1));}else{return b.utils.selectors.getElementsByTagAndClass("*",a.substr(1));}}else{if(a.indexOf(".")>0){selectors=a.split(".");return b.utils.selectors.getElementsByTagAndClass(selectors[0],selectors[1]);}else{return e.getElementsByTagName(a);}}}return null;};b.utils.selectors.getElementsByTagAndClass=function(l,i,j){elements=[];if(j===undefined){j=document;}var k=j.getElementsByTagName(l);for(var m=0;m5||a.length==0){return a;}else{return Number(a);}}}}};b.utils.strings.seconds=function(e){e=e.replace(",",".");var a=e.split(":");var f=0;if(e.substr(-1)=="s"){f=Number(e.substr(0,e.length-1));}else{if(e.substr(-1)=="m"){f=Number(e.substr(0,e.length-1))*60;}else{if(e.substr(-1)=="h"){f=Number(e.substr(0,e.length-1))*3600;}else{if(a.length>1){f=Number(a[a.length-1]);f+=Number(a[a.length-2])*60;if(a.length==3){f+=Number(a[a.length-3])*3600;}}else{f=Number(e);}}}}return f;};b.utils.strings.xmlAttribute=function(a,f){for(var e in a.attributes){if(a.attributes[e].name&&a.attributes[e].name.toLowerCase()==f.toLowerCase()){return a.attributes[e].value.toString();}}return"";};b.utils.strings.jsonToString=function(k){var i=i||{};if(i&&i.stringify){return i.stringify(k);}var n=typeof(k);if(n!="object"||k===null){if(n=="string"){k='"'+k+'"';}else{return String(k);}}else{var j=[],a=(k&&k.constructor==Array);for(var m in k){var l=k[m];switch(typeof(l)){case"string":l='"'+l+'"';break;case"object":if(l!==null){l=b.utils.strings.jsonToString(l);}break;}if(a){if(typeof(l)!="function"){j.push(String(l));}}else{if(typeof(l)!="function"){j.push('"'+m+'":'+String(l));}}}if(a){return"["+String(j)+"]";}else{return"{"+String(j)+"}";}}};})(jwplayer);(function(j){var i=new RegExp(/^(#|0x)[0-9a-fA-F]{3,6}/);j.utils.typechecker=function(a,b){b=b===null?f(a):b;return h(a,b);};function f(b){var a=["true","false","t","f"];if(a.toString().indexOf(b.toLowerCase().replace(" ",""))>=0){return"boolean";}else{if(i.test(b)){return"color";}else{if(!isNaN(parseInt(b,10))&&parseInt(b,10).toString().length==b.length){return"integer";}else{if(!isNaN(parseFloat(b))&&parseFloat(b).toString().length==b.length){return"float";}}}}return"string";}function h(a,b){if(b===null){return a;}switch(b){case"color":if(a.length>0){return g(a);}return null;case"integer":return parseInt(a,10);case"float":return parseFloat(a);case"boolean":if(a.toLowerCase()=="true"){return true;}else{if(a=="1"){return true;}}return false;}return a;}function g(a){switch(a.toLowerCase()){case"blue":return parseInt("0000FF",16);case"green":return parseInt("00FF00",16);case"red":return parseInt("FF0000",16);case"cyan":return parseInt("00FFFF",16);case"magenta":return parseInt("FF00FF",16);case"yellow":return parseInt("FFFF00",16);case"black":return parseInt("000000",16);case"white":return parseInt("FFFFFF",16);default:a=a.replace(/(#|0x)?([0-9A-F]{3,6})$/gi,"$2");if(a.length==3){a=a.charAt(0)+a.charAt(0)+a.charAt(1)+a.charAt(1)+a.charAt(2)+a.charAt(2);}return parseInt(a,16);}return parseInt("000000",16);}})(jwplayer);(function(e){var f={};var d={};e.plugins=function(){};e.plugins.loadPlugins=function(a,b){d[a]=new e.plugins.pluginloader(new e.plugins.model(f),b);return d[a];};e.plugins.registerPlugin=function(a,c,i){var j=e.utils.getPluginName(a);if(f[j]){f[j].registerPlugin(a,c,i);}else{e.utils.log("A plugin ("+a+") was registered with the player that was not loaded. Please check your configuration.");for(var b in d){d[b].pluginFailed();}}};})(jwplayer);(function(b){b.plugins.model=function(a){this.addPlugin=function(f){var e=b.utils.getPluginName(f);if(!a[e]){a[e]=new b.plugins.plugin(f);}return a[e];};};})(jwplayer);(function(b){b.plugins.pluginmodes={FLASH:"FLASH",JAVASCRIPT:"JAVASCRIPT",HYBRID:"HYBRID"};b.plugins.plugin=function(t){var r="http://lp.longtailvideo.com";var m=b.utils.loaderstatus.NEW;var l;var n;var a;var s=new b.events.eventdispatcher();b.utils.extend(this,s);function q(){switch(b.utils.getPluginPathType(t)){case b.utils.pluginPathType.ABSOLUTE:return t;case b.utils.pluginPathType.RELATIVE:return b.utils.getAbsolutePath(t,window.location.href);case b.utils.pluginPathType.CDN:var c=b.utils.getPluginName(t);var d=b.utils.getPluginVersion(t);return r+"/"+b.version.split(".")[0]+"/"+c+"/"+c+(d!==""?("-"+d):"")+".js";}}function o(c){a=setTimeout(function(){m=b.utils.loaderstatus.COMPLETE;s.sendEvent(b.events.COMPLETE);},1000);}function p(c){m=b.utils.loaderstatus.ERROR;s.sendEvent(b.events.ERROR);}this.load=function(){if(m==b.utils.loaderstatus.NEW){if(t.lastIndexOf(".swf")>0){l=t;m=b.utils.loaderstatus.COMPLETE;s.sendEvent(b.events.COMPLETE);return;}m=b.utils.loaderstatus.LOADING;var c=new b.utils.scriptloader(q());c.addEventListener(b.events.COMPLETE,o);c.addEventListener(b.events.ERROR,p);c.load();}};this.registerPlugin=function(e,c,d){if(a){clearTimeout(a);a=undefined;}if(c&&d){l=d;n=c;}else{if(typeof c=="string"){l=c;}else{if(typeof c=="function"){n=c;}else{if(!c&&!d){l=e;}}}}m=b.utils.loaderstatus.COMPLETE;s.sendEvent(b.events.COMPLETE);};this.getStatus=function(){return m;};this.getPluginName=function(){return b.utils.getPluginName(t);};this.getFlashPath=function(){if(l){switch(b.utils.getPluginPathType(l)){case b.utils.pluginPathType.ABSOLUTE:return l;case b.utils.pluginPathType.RELATIVE:if(t.lastIndexOf(".swf")>0){return b.utils.getAbsolutePath(l,window.location.href);}return b.utils.getAbsolutePath(l,q());case b.utils.pluginPathType.CDN:if(l.indexOf("-")>-1){return l+"h";}return l+"-h";}}return null;};this.getJS=function(){return n;};this.getPluginmode=function(){if(typeof l!="undefined"&&typeof n!="undefined"){return b.plugins.pluginmodes.HYBRID;}else{if(typeof l!="undefined"){return b.plugins.pluginmodes.FLASH;}else{if(typeof n!="undefined"){return b.plugins.pluginmodes.JAVASCRIPT;}}}};this.getNewInstance=function(c,d,e){return new n(c,d,e);};this.getURL=function(){return t;};};})(jwplayer);(function(b){b.plugins.pluginloader=function(l,o){var m={};var a=b.utils.loaderstatus.NEW;var p=false;var r=false;var q=new b.events.eventdispatcher();b.utils.extend(this,q);function n(){if(!r){r=true;a=b.utils.loaderstatus.COMPLETE;q.sendEvent(b.events.COMPLETE);}}function k(){if(!r){var c=0;for(plugin in m){var d=m[plugin].getStatus();if(d==b.utils.loaderstatus.LOADING||d==b.utils.loaderstatus.NEW){c++;}}if(c==0){n();}}}this.setupPlugins=function(c,e,f){var d={length:0,plugins:{}};var i={length:0,plugins:{}};for(var j in m){var h=m[j].getPluginName();if(m[j].getFlashPath()){d.plugins[m[j].getFlashPath()]=e.plugins[j];d.plugins[m[j].getFlashPath()].pluginmode=m[j].getPluginmode();d.length++;}if(m[j].getJS()){var g=document.createElement("div");g.id=c.id+"_"+h;g.style.position="absolute";g.style.zIndex=i.length+10;i.plugins[h]=m[j].getNewInstance(c,e.plugins[j],g);i.length++;if(typeof i.plugins[h].resize!="undefined"){c.onReady(f(i.plugins[h],g,true));c.onResize(f(i.plugins[h],g));}}}c.plugins=i.plugins;return d;};this.load=function(){a=b.utils.loaderstatus.LOADING;p=true;for(var c in o){m[c]=l.addPlugin(c);m[c].addEventListener(b.events.COMPLETE,k);m[c].addEventListener(b.events.ERROR,k);}for(c in o){m[c].load();}p=false;k();};this.pluginFailed=function(){n();};this.getStatus=function(){return a;};};})(jwplayer);(function(c){var d=[];c.api=function(A){this.container=A;this.id=A.id;var s={};var a={};var B=[];var w=undefined;var t=false;var v=[];var q=c.utils.getOuterHTML(A);var b={};var u={};this.getBuffer=function(){return this.callInternal("jwGetBuffer");};this.getContainer=function(){return this.container;};function z(e){return function(f,j,i,h){var g;if(j){u[f]=j;g="jwplayer('"+e+"').callback('"+f+"')";}else{if(!j&&u[f]){delete u[f];}}w.jwDockSetButton(f,g,i,h);};}this.getPlugin=function(e){var f=this.callInternal;if(e=="dock"){return{setButton:z(this.id),show:function(){return f("jwShowDock");},hide:function(){return f("jwHideDock");}};}else{if(e=="controlbar"){return{show:function(){return f("jwShowControlbar");},hide:function(){return f("jwHideControlbar");}};}else{if(e=="display"){return{show:function(){return f("jwShowDisplay");},hide:function(){return f("jwHideDisplay");}};}}}return this.plugins[e];};this.callback=function(e){if(u[e]){return u[e]();}};this.getDuration=function(){return this.callInternal("jwGetDuration");};this.getFullscreen=function(){return this.callInternal("jwGetFullscreen");};this.getHeight=function(){return this.callInternal("jwGetHeight");};this.getLockState=function(){return this.callInternal("jwGetLockState");};this.getMeta=function(){return this.getItemMeta();};this.getMute=function(){return this.callInternal("jwGetMute");};this.getPlaylist=function(){var e=this.callInternal("jwGetPlaylist");if(this.renderingMode=="flash"){c.utils.deepReplaceKeyName(e,"__dot__",".");}for(var f=0;f0){var f=v.shift();this.callInternal(f.method,f.parameters);}};this.getItemMeta=function(){return b;};this.getCurrentItem=function(){return this.callInternal("jwGetPlaylistIndex");};function r(g,e,f){var i=[];if(!e){e=0;}if(!f){f=g.length-1;}for(var h=e;h<=f;h++){i.push(g[h]);}return i;}return this;};c.api.selectPlayer=function(b){var f;if(b===undefined){b=0;}if(b.nodeType){f=b;}else{if(typeof b=="string"){f=document.getElementById(b);}}if(f){var a=c.api.playerById(f.id);if(a){return a;}else{return c.api.addPlayer(new c.api(f));}}else{if(typeof b=="number"){return c.getPlayers()[b];}}return null;};c.api.events={API_READY:"jwplayerAPIReady",JWPLAYER_READY:"jwplayerReady",JWPLAYER_FULLSCREEN:"jwplayerFullscreen",JWPLAYER_RESIZE:"jwplayerResize",JWPLAYER_ERROR:"jwplayerError",JWPLAYER_MEDIA_BUFFER:"jwplayerMediaBuffer",JWPLAYER_MEDIA_BUFFER_FULL:"jwplayerMediaBufferFull",JWPLAYER_MEDIA_ERROR:"jwplayerMediaError",JWPLAYER_MEDIA_LOADED:"jwplayerMediaLoaded",JWPLAYER_MEDIA_COMPLETE:"jwplayerMediaComplete",JWPLAYER_MEDIA_SEEK:"jwplayerMediaSeek",JWPLAYER_MEDIA_TIME:"jwplayerMediaTime",JWPLAYER_MEDIA_VOLUME:"jwplayerMediaVolume",JWPLAYER_MEDIA_META:"jwplayerMediaMeta",JWPLAYER_MEDIA_MUTE:"jwplayerMediaMute",JWPLAYER_PLAYER_STATE:"jwplayerPlayerState",JWPLAYER_PLAYLIST_LOADED:"jwplayerPlaylistLoaded",JWPLAYER_PLAYLIST_ITEM:"jwplayerPlaylistItem"};c.api.events.state={BUFFERING:"BUFFERING",IDLE:"IDLE",PAUSED:"PAUSED",PLAYING:"PLAYING"};c.api.playerById=function(a){for(var b=0;b=0){var n=document.getElementById(d[k].id);if(document.getElementById(d[k].id+"_wrapper")){n=document.getElementById(d[k].id+"_wrapper");}if(n){if(m){c.utils.setOuterHTML(n,m);}else{var b=document.createElement("div");var l=n.id;if(n.id.indexOf("_wrapper")==n.id.length-8){newID=n.id.substring(0,n.id.length-8);}b.setAttribute("id",l);n.parentNode.replaceChild(b,n);}}d.splice(k,1);}return null;};c.getPlayers=function(){return d.slice(0);};})(jwplayer);var _userPlayerReady=(typeof playerReady=="function")?playerReady:undefined;playerReady=function(c){var d=jwplayer.api.playerById(c.id);if(d){d.playerReady(c);}if(_userPlayerReady){_userPlayerReady.call(this,c);}};(function(d){d.embed=function(j){var a={width:400,height:300,components:{controlbar:{position:"over"}}};var k=d.utils.mediaparser.parseMedia(j.container);var l=new d.embed.config(d.utils.extend(a,k,j.config),this);var b=d.plugins.loadPlugins(j.id,l.plugins);function n(e,f){for(var g in f){if(typeof e[g]=="function"){(e[g]).call(e,f[g]);}}}function m(){if(b.getStatus()==d.utils.loaderstatus.COMPLETE){for(var e=0;e-1){return parseInt(a);}}return a;}var m=["playlist","dock","controlbar","logo"];function l(d){var a={};switch(j.utils.typeOf(d.plugins)){case"object":for(var b in d.plugins){a[j.utils.getPluginName(b)]=b;}break;case"string":var e=d.plugins.split(",");for(var c=0;c-1){var b=a.split(".");var c=b[0];var a=b[1];if(j.utils.isInArray(m,c)){i(e,"components",c,a);}else{if(d[c]){i(e,"plugins",d[c],a);}}}}return e;};j.embed.config=function(r,a){var b=j.utils.extend({},r);var d;if(o(b.playlist)){d=b.playlist;delete b.playlist;}b=j.embed.deserialize(b);b.height=k(b.height);b.width=k(b.width);if(typeof b.plugins=="string"){var h=b.plugins.split(",");if(typeof b.plugins!="object"){b.plugins={};}for(var f=0;f-1)){return true;}if(!d||(d&&d=="video")){var c=b.utils.extension(f);if(c&&b.utils.extensionmap[c]){return true;}}return false;}};})(jwplayer);(function(b){b.embed.flash=function(r,q,m,s,o){function a(f,c,e){var d=document.createElement("param");d.setAttribute("name",c);d.setAttribute("value",e);f.appendChild(d);}function n(e,d,c){return function(h){if(c){document.getElementById(o.id+"_wrapper").appendChild(d);}var f=document.getElementById(o.id).getPluginConfig("display");e.resize(f.width,f.height);var g={left:f.x,top:f.y};b.utils.css(d,g);};}function t(f){if(!f){return{};}var d={};for(var g in f){var c=f[g];for(var e in c){d[g+"."+e]=c[e];}}return d;}function p(f,g){if(f[g]){var d=f[g];for(var h in d){var c=d[h];if(typeof c=="string"){if(!f[h]){f[h]=c;}}else{for(var e in c){if(!f[h+"."+e]){f[h+"."+e]=c[e];}}}}delete f[g];}}function v(g){if(!g){return{};}var d={},e=[];for(var c in g){var h=b.utils.getPluginName(c);var i=g[c];e.push(c);for(var f in i){d[h+"."+f]=i[f];}}d.plugins=e.join(",");return d;}function u(d){var c=d.netstreambasepath?"":"netstreambasepath="+encodeURIComponent(window.location.href)+"&";for(var e in d){if(typeof(d[e])=="object"){c+=e+"="+encodeURIComponent("[[JSON]]"+b.utils.strings.jsonToString(d[e]))+"&";}else{c+=e+"="+encodeURIComponent(d[e])+"&";}}return c.substring(0,c.length-1);}this.embed=function(){m.id=o.id;var i;var e=b.utils.extend({},m);var h=e.width;var k=e.height;if(r.id+"_wrapper"==r.parentNode.id){i=document.getElementById(r.id+"_wrapper");}else{i=document.createElement("div");i.id=r.id+"_wrapper";b.utils.wrap(r,i);b.utils.css(i,{position:"relative",width:h,height:k});}var g=s.setupPlugins(o,e,n);if(g.length>0){b.utils.extend(e,v(g.plugins));}else{delete e.plugins;}var d=["height","width","modes","events"];for(var y=0;y';l+='';l+='';l+='';l+='';l+='';l+='';l+="";b.utils.setOuterHTML(r,l);z=document.getElementById(r.id);}else{var c=document.createElement("object");c.setAttribute("type","application/x-shockwave-flash");c.setAttribute("data",q.src);c.setAttribute("width","100%");c.setAttribute("height","100%");c.setAttribute("bgcolor","#000000");c.setAttribute("id",r.id);c.setAttribute("name",r.id);c.setAttribute("tabindex",0);a(c,"allowfullscreen","true");a(c,"allowscriptaccess","always");a(c,"seamlesstabbing","true");a(c,"wmode",f);a(c,"flashvars",u(e));r.parentNode.replaceChild(c,r);z=c;}o.container=z;o.setPlayer(z,"flash");};this.supportsConfig=function(){if(b.utils.hasFlash()){if(m){var d=b.utils.getFirstPlaylistItemFromConfig(m);if(typeof d.file=="undefined"&&typeof d.levels=="undefined"){return true;}else{if(d.file){return flashCanPlay(d.file,d.provider);}else{if(d.levels&&d.levels.length){for(var c=0;c0){e.skin=e.skin.replace(/\.zip/i,".xml");}var c=new (b.html5(l)).setup(e);i.container=document.getElementById(i.id);i.setPlayer(c,"html5");}else{return null;}};this.supportsConfig=function(){var e=document.createElement("video");if(!!e.canPlayType){if(a){var c=b.utils.getFirstPlaylistItemFromConfig(a);if(typeof c.file=="undefined"&&typeof c.levels=="undefined"){return true;}else{if(c.file){return html5CanPlay(e,c.file,c.provider,c.playlistfile);}else{if(c.levels&&c.levels.length){for(var d=0;d-1){return g;}else{return parseInt(g.replace("px",""),10);}}}return g;}this.setup=function(h){N=h;c();P();F.jwAddEventListener(d.api.events.JWPLAYER_MEDIA_LOADED,E);F.jwAddEventListener(d.api.events.JWPLAYER_MEDIA_META,function(){B();});var g;if(window.onresize!==null){g=window.onresize;}window.onresize=function(k){if(g!==undefined){try{g(k);}catch(i){}}if(F.jwGetFullscreen()){var j=document.body.getBoundingClientRect();C.width=Math.abs(j.left)+Math.abs(j.right);C.height=window.innerHeight;}Q(C.width,C.height);};};function S(g){switch(g.keyCode){case 27:if(F.jwGetFullscreen()){F.jwSetFullscreen(false);}break;case 32:if(F.jwGetState()!=d.api.events.state.IDLE&&F.jwGetState()!=d.api.events.state.PAUSED){F.jwPause();}else{F.jwPlay();}break;}}function Q(g,j){if(D.style.display=="none"){return;}var h=[].concat(C.plugins.order);h.reverse();I=h.length+2;if(!C.fullscreen){C.width=g;C.height=j;T=g;a=j;f(H,{top:0,bottom:0,left:0,right:0,width:g,height:j});f(D,{height:a,width:T});var i=M(G,h);if(i.length>0){I+=i.length;M(O,i,true);}}else{if(navigator.vendor.indexOf("Apple")!==0){M(b,h,true);}}B();}function M(h,k,j){var l=[];for(var m=0;m-1){percentage=parseFloat(C.width.substring(0,C.width.lastIndexOf("%")))/100;j=Math.round(window.innerWidth*percentage);}if(typeof C.height=="string"&&C.height.lastIndexOf("%")>-1){percentage=parseFloat(C.height.substring(0,C.height.lastIndexOf("%")))/100;i=Math.round(window.innerHeight*percentage);}return{position:"absolute",width:(j-R(H.style.left)-R(H.style.right)),height:(i-R(H.style.top)-R(H.style.bottom)),zIndex:g};}function b(h,g){return{position:"fixed",width:C.width,height:C.height,zIndex:g};}function B(){H.style.position="absolute";C.getMedia().getDisplayElement().style.position="absolute";if(C.getMedia().getDisplayElement().videoWidth==0||C.getMedia().getDisplayElement().videoHeight==0){return;}var i,g;if(H.style.width.toString().lastIndexOf("%")>-1||H.style.width.toString().lastIndexOf("%")>-1){var h=H.getBoundingClientRect();i=Math.abs(h.left)+Math.abs(h.right);g=Math.abs(h.top)+Math.abs(h.bottom);}else{i=R(H.style.width);g=R(H.style.height);}d.utils.stretch(F.jwGetStretching(),C.getMedia().getDisplayElement(),i,g,C.getMedia().getDisplayElement().videoWidth,C.getMedia().getDisplayElement().videoHeight);}function V(h){var g={position:"absolute",margin:0,padding:0,top:null};var i=C.plugins.config[h].currentPosition.toLowerCase();switch(i.toUpperCase()){case d.html5.view.positions.TOP:g.top=R(H.style.top);g.left=R(H.style.left);g.width=T-R(H.style.left)-R(H.style.right);g.height=C.plugins.object[h].height;H.style[i]=R(H.style[i])+C.plugins.object[h].height+"px";H.style.height=R(H.style.height)-g.height+"px";break;case d.html5.view.positions.RIGHT:g.top=R(H.style.top);g.right=R(H.style.right);g.width=g.width=C.plugins.object[h].width;g.height=a-R(H.style.top)-R(H.style.bottom);H.style[i]=R(H.style[i])+C.plugins.object[h].width+"px";H.style.width=R(H.style.width)-g.width+"px";break;case d.html5.view.positions.BOTTOM:g.bottom=R(H.style.bottom);g.left=R(H.style.left);g.width=T-R(H.style.left)-R(H.style.right);g.height=C.plugins.object[h].height;H.style[i]=R(H.style[i])+C.plugins.object[h].height+"px";H.style.height=R(H.style.height)-g.height+"px";break;case d.html5.view.positions.LEFT:g.top=R(H.style.top);g.left=R(H.style.left);g.width=C.plugins.object[h].width;g.height=a-R(H.style.top)-R(H.style.bottom);H.style[i]=R(H.style[i])+C.plugins.object[h].width+"px";H.style.width=R(H.style.width)-g.width+"px";break;default:break;}return g;}this.resize=Q;this.fullscreen=function(g){if(navigator.vendor.indexOf("Apple")===0){if(C.getMedia().getDisplayElement().webkitSupportsFullscreen){if(g){try{C.getMedia().getDisplayElement().webkitEnterFullscreen();}catch(h){}}else{try{C.getMedia().getDisplayElement().webkitExitFullscreen();}catch(h){}}}}else{if(g){document.onkeydown=S;clearInterval(L);var i=document.body.getBoundingClientRect();C.width=Math.abs(i.left)+Math.abs(i.right);C.height=window.innerHeight;var j={position:"fixed",width:"100%",height:"100%",top:0,left:0,zIndex:2147483000};f(D,j);j.zIndex=1;f(C.getMedia().getDisplayElement(),j);j.zIndex=2;f(H,j);}else{document.onkeydown="";C.width=T;C.height=a;f(D,{position:"relative",height:C.height,width:C.width,zIndex:0});}Q(C.width,C.height);}};};function e(a){return([d.html5.view.positions.TOP,d.html5.view.positions.RIGHT,d.html5.view.positions.BOTTOM,d.html5.view.positions.LEFT].toString().indexOf(a.toUpperCase())>-1);}d.html5.view.positions={TOP:"TOP",RIGHT:"RIGHT",BOTTOM:"BOTTOM",LEFT:"LEFT",OVER:"OVER",NONE:"NONE"};})(jwplayer);(function(d){var c={backgroundcolor:"",margin:10,font:"Arial,sans-serif",fontsize:10,fontcolor:parseInt("000000",16),fontstyle:"normal",fontweight:"bold",buttoncolor:parseInt("ffffff",16),position:d.html5.view.positions.BOTTOM,idlehide:false,layout:{left:{position:"left",elements:[{name:"play",type:"button"},{name:"divider",type:"divider"},{name:"prev",type:"button"},{name:"divider",type:"divider"},{name:"next",type:"button"},{name:"divider",type:"divider"},{name:"elapsed",type:"text"}]},center:{position:"center",elements:[{name:"time",type:"slider"}]},right:{position:"right",elements:[{name:"duration",type:"text"},{name:"blank",type:"button"},{name:"divider",type:"divider"},{name:"mute",type:"button"},{name:"volume",type:"slider"},{name:"divider",type:"divider"},{name:"fullscreen",type:"button"}]}}};_css=d.utils.css;_hide=function(a){_css(a,{display:"none"});};_show=function(a){_css(a,{display:"block"});};d.html5.controlbar=function(aI,af){var aJ=aI;var ar=d.utils.extend({},c,aJ.skin.getComponentSettings("controlbar"),af);if(ar.position==d.html5.view.positions.NONE||typeof d.html5.view.positions[ar.position]=="undefined"){return;}if(d.utils.mapLength(aJ.skin.getComponentLayout("controlbar"))>0){ar.layout=aJ.skin.getComponentLayout("controlbar");}var aa;var ai;var ab;var aq;var az="none";var aN;var aK;var Z;var aO;var aP;var aw;var ah={};var aE=false;var aQ={};var ad;var aL=false;function an(){if(!ad){ad=aJ.skin.getSkinElement("controlbar","background");if(!ad){ad={width:0,height:0,src:null};}}return ad;}function aj(){ab=0;aq=0;ai=0;if(!aE){var f={height:an().height,backgroundColor:ar.backgroundcolor};aa=document.createElement("div");aa.id=aJ.id+"_jwplayer_controlbar";_css(aa,f);}var g=(aJ.skin.getSkinElement("controlbar","capLeft"));var h=(aJ.skin.getSkinElement("controlbar","capRight"));if(g){ax("capLeft","left",false,aa);}var e={position:"absolute",height:an().height,left:(g?g.width:0),zIndex:0};ac("background",aa,e,"img");if(an().src){ah.background.src=an().src;}e.zIndex=1;ac("elements",aa,e);if(h){ax("capRight","right",false,aa);}}this.getDisplayElement=function(){return aa;};this.resize=function(e,g){d.utils.cancelAnimation(aa);document.getElementById(aJ.id).onmousemove=av;aP=e;aw=g;av();var f=ay();ao({id:aJ.id,duration:Z,position:aK});aA({id:aJ.id,bufferPercent:aO});return f;};this.show=function(){aL=false;_show(aa);};this.hide=function(){aL=true;_hide(aa);};function aD(){var f=["timeSlider","volumeSlider","timeSliderRail","volumeSliderRail"];for(var e in f){var g=f[e];if(typeof ah[g]!="undefined"){aQ[g]=ah[g].getBoundingClientRect();}}}function av(){if(aL){return;}d.utils.cancelAnimation(aa);if(aM()){d.utils.fadeTo(aa,1,0,1,0);}else{d.utils.fadeTo(aa,0,0.1,1,2);}}function aM(){if(aL){return false;}if(aJ.jwGetState()==d.api.events.state.IDLE||aJ.jwGetState()==d.api.events.state.PAUSED){if(ar.idlehide){return false;}return true;}if(aJ.jwGetFullscreen()){return false;}if(ar.position==d.html5.view.positions.OVER){return false;}return true;}function ac(e,g,f,i){var h;if(!aE){if(!i){i="div";}h=document.createElement(i);ah[e]=h;h.id=aa.id+"_"+e;g.appendChild(h);}else{h=document.getElementById(aa.id+"_"+e);}if(f!==undefined){_css(h,f);}return h;}function ak(){a(ar.layout.left);a(ar.layout.right,-1);a(ar.layout.center);}function a(g,i){var e=g.position=="right"?"right":"left";var f=d.utils.extend([],g.elements);if(i!==undefined){f.reverse();}for(var h=0;h0||e.indexOf("divider")===0){var n={height:an().height,position:"absolute",display:"block",top:0};if((e.indexOf("next")===0||e.indexOf("prev")===0)&&aJ.jwGetPlaylist().length<2){g=false;n.display="none";}var i;if(e.indexOf("Text")>0){e.innerhtml="00:00";n.font=ar.fontsize+"px/"+(an().height+1)+"px "+ar.font;n.color=ar.fontcolor;n.textAlign="center";n.fontWeight=ar.fontweight;n.fontStyle=ar.fontstyle;n.cursor="default";i=14+3*ar.fontsize;}else{if(e.indexOf("divider")===0){if(h){if(!isNaN(parseInt(h))){i=parseInt(h);}}else{if(f){var l=aJ.skin.getSkinElement("controlbar",f);if(l){n.background="url("+l.src+") repeat-x center left";i=l.width;}}else{n.background="url("+aJ.skin.getSkinElement("controlbar","divider").src+") repeat-x center left";i=aJ.skin.getSkinElement("controlbar","divider").width;}}}else{n.background="url("+aJ.skin.getSkinElement("controlbar",e).src+") repeat-x center left";i=aJ.skin.getSkinElement("controlbar",e).width;}}if(m=="left"){n.left=isNaN(o)?ab:o;if(g){ab+=i;}}else{if(m=="right"){n.right=isNaN(o)?aq:o;if(g){aq+=i;}}}if(d.utils.typeOf(j)=="undefined"){j=ah.elements;}n.width=i;if(aE){_css(ah[e],n);}else{var k=ac(e,j,n);if(aJ.skin.getSkinElement("controlbar",e+"Over")!==undefined){k.onmouseover=function(p){k.style.backgroundImage=["url(",aJ.skin.getSkinElement("controlbar",e+"Over").src,")"].join("");};k.onmouseout=function(p){k.style.backgroundImage=["url(",aJ.skin.getSkinElement("controlbar",e).src,")"].join("");};}}}}function ap(){aJ.jwAddEventListener(d.api.events.JWPLAYER_PLAYLIST_LOADED,au);aJ.jwAddEventListener(d.api.events.JWPLAYER_MEDIA_BUFFER,aA);aJ.jwAddEventListener(d.api.events.JWPLAYER_PLAYER_STATE,aC);aJ.jwAddEventListener(d.api.events.JWPLAYER_MEDIA_TIME,ao);aJ.jwAddEventListener(d.api.events.JWPLAYER_MEDIA_MUTE,b);aJ.jwAddEventListener(d.api.events.JWPLAYER_MEDIA_VOLUME,aH);aJ.jwAddEventListener(d.api.events.JWPLAYER_MEDIA_COMPLETE,al);}function au(){aj();ak();ay();Y();}function Y(){ao({id:aJ.id,duration:aJ.jwGetDuration(),position:0});aA({id:aJ.id,bufferProgress:0});b({id:aJ.id,mute:aJ.jwGetMute()});aC({id:aJ.id,newstate:d.api.events.state.IDLE});aH({id:aJ.id,volume:aJ.jwGetVolume()});}function ag(f,e,g){if(aE){return;}if(aJ.skin.getSkinElement("controlbar",f)!==undefined){var h=ah[f];if(h!==null){_css(h,{cursor:"pointer"});if(e=="fullscreen"){h.onmouseup=function(i){i.stopPropagation();aJ.jwSetFullscreen(!aJ.jwGetFullscreen());};}else{h.onmouseup=function(i){i.stopPropagation();if(g!==null){aJ[e](g);}else{aJ[e]();}};}}}}function ae(f){if(aE){return;}var e=ah[f+"Slider"];_css(ah.elements,{cursor:"pointer"});_css(e,{cursor:"pointer"});e.onmousedown=function(g){az=f;};e.onmouseup=function(g){g.stopPropagation();X(g.pageX);};e.onmousemove=function(h){if(az=="time"){aN=true;var g=h.pageX-aQ[f+"Slider"].left-window.pageXOffset;_css(ah.timeSliderThumb,{left:g});}};}function X(g){aN=false;var h;if(az=="time"){h=g-aQ.timeSliderRail.left+window.pageXOffset;var f=h/aQ.timeSliderRail.width*Z;if(f<0){f=0;}else{if(f>Z){f=Z-3;}}if(aJ.jwGetState()==d.api.events.state.PAUSED||aJ.jwGetState()==d.api.events.state.IDLE){aJ.jwPlay();}aJ.jwSeek(f);}else{if(az=="volume"){h=g-aQ.volumeSliderRail.left-window.pageXOffset;var e=Math.round(h/aQ.volumeSliderRail.width*100);if(e<0){e=0;}else{if(e>100){e=100;}}if(aJ.jwGetMute()){aJ.jwSetMute(false);}aJ.jwSetVolume(e);}}az="none";}function aA(f){if(f.bufferPercent!==null){aO=f.bufferPercent;}if(aQ.timeSliderRail){var e=aQ.timeSliderRail.width;var g=isNaN(Math.round(e*aO/100))?0:Math.round(e*aO/100);_css(ah.timeSliderBuffer,{width:g});}}function b(e){if(e.mute){_hide(ah.muteButton);_show(ah.unmuteButton);_hide(ah.volumeSliderProgress);}else{_show(ah.muteButton);_hide(ah.unmuteButton);_show(ah.volumeSliderProgress);}}function aC(e){if(e.newstate==d.api.events.state.BUFFERING||e.newstate==d.api.events.state.PLAYING){_show(ah.pauseButton);_hide(ah.playButton);}else{_hide(ah.pauseButton);_show(ah.playButton);}av();if(e.newstate==d.api.events.state.IDLE){_hide(ah.timeSliderBuffer);_hide(ah.timeSliderProgress);_hide(ah.timeSliderThumb);ao({id:aJ.id,duration:aJ.jwGetDuration(),position:0});}else{_show(ah.timeSliderBuffer);if(e.newstate!=d.api.events.state.BUFFERING){_show(ah.timeSliderProgress);_show(ah.timeSliderThumb);}}}function al(e){aA({bufferPercent:0});ao(d.utils.extend(e,{position:0,duration:Z}));}function ao(g){if(g.position!==null){aK=g.position;}if(g.duration!==null){Z=g.duration;}var h=(aK===Z===0)?0:aK/Z;var e=aQ.timeSliderRail;if(e){var i=isNaN(Math.round(e.width*h))?0:Math.round(e.width*h);var f=i;if(ah.timeSliderProgress){ah.timeSliderProgress.style.width=i+"px";if(!aN){if(ah.timeSliderThumb){ah.timeSliderThumb.style.left=f+"px";}}}}if(ah.durationText){ah.durationText.innerHTML=aF(Z);}if(ah.elapsedText){ah.elapsedText.innerHTML=aF(aK);}}function aF(e){str="00:00";if(e>0){str=Math.floor(e/60)<10?"0"+Math.floor(e/60)+":":Math.floor(e/60)+":";str+=Math.floor(e%60)<10?"0"+Math.floor(e%60):Math.floor(e%60);}return str;}function aG(){var f,g;var e=document.getElementById(aa.id+"_elements").childNodes;for(var h in document.getElementById(aa.id+"_elements").childNodes){if(isNaN(parseInt(h,10))){continue;}if(e[h].id.indexOf(aa.id+"_divider")===0&&g&&g.id.indexOf(aa.id+"_divider")===0&&e[h].style.backgroundImage==g.style.backgroundImage){e[h].style.display="none";}else{if(e[h].id.indexOf(aa.id+"_divider")===0&&f&&f.style.display!="none"){e[h].style.display="block";}}if(e[h].style.display!="none"){g=e[h];}f=e[h];}}function ay(){aG();if(aJ.jwGetFullscreen()){_show(ah.normalscreenButton);_hide(ah.fullscreenButton);}else{_hide(ah.normalscreenButton);_show(ah.fullscreenButton);}var h={width:aP};var i={};if(ar.position==d.html5.view.positions.OVER||aJ.jwGetFullscreen()){h.left=ar.margin;h.width-=2*ar.margin;h.top=aw-an().height-ar.margin;h.height=an().height;}else{h.left=0;}var g=aJ.skin.getSkinElement("controlbar","capLeft");var f=aJ.skin.getSkinElement("controlbar","capRight");i.left=g?g.width:0;i.width=h.width-i.left-(f?f.width:0);var e=aJ.skin.getSkinElement("controlbar","timeSliderCapLeft")===undefined?0:aJ.skin.getSkinElement("controlbar","timeSliderCapLeft").width;_css(ah.timeSliderRail,{width:(i.width-ab-aq),left:e});if(ah.timeSliderCapRight!==undefined){_css(ah.timeSliderCapRight,{left:e+(i.width-ab-aq)});}_css(aa,h);_css(ah.elements,i);_css(ah.background,i);aD();return h;}function aH(f){if(ah.volumeSliderRail!==undefined){var h=isNaN(f.volume/100)?1:f.volume/100;var g=parseInt(ah.volumeSliderRail.style.width.replace("px",""),10);var j=isNaN(Math.round(g*h))?0:Math.round(g*h);var e=parseInt(ah.volumeSliderRail.style.right.replace("px",""),10);var i=aJ.skin.getSkinElement("controlbar","volumeSliderCapLeft")===undefined?0:aJ.skin.getSkinElement("controlbar","volumeSliderCapLeft").width;_css(ah.volumeSliderProgress,{width:j,left:i});if(ah.volumeSliderCapLeft!==undefined){_css(ah.volumeSliderCapLeft,{left:0});}}}function aB(){aj();ak();aD();aE=true;ap();Y();aa.style.opacity=ar.idlehide?0:1;}aB();return this;};})(jwplayer);(function(c){var d=["width","height","state","playlist","item","position","buffer","duration","volume","mute","fullscreen"];c.html5.controller=function(H,K,Z,M){var E=H;var b=Z;var aa=M;var T=K;var N=true;var ab=-1;var G=(b.config.debug!==undefined)&&(b.config.debug.toString().toLowerCase()=="console");var V=new c.html5.eventdispatcher(T.id,G);c.utils.extend(this,V);function R(e){V.sendEvent(e.type,e);}b.addGlobalListener(R);function O(){try{if(b.playlist[b.item].levels[0].file.length>0){if(N||b.state==c.api.events.state.IDLE){b.addEventListener(c.api.events.JWPLAYER_MEDIA_BUFFER_FULL,function(){b.getMedia().play();});b.addEventListener(c.api.events.JWPLAYER_MEDIA_TIME,function(f){if(f.position>=b.playlist[b.item].start&&ab>=0){b.playlist[b.item].start=ab;ab=-1;}});if(b.config.repeat){b.addEventListener(c.api.events.JWPLAYER_MEDIA_COMPLETE,function(f){setTimeout(Q,25);});}b.getMedia().load(b.playlist[b.item]);N=false;}else{if(b.state==c.api.events.state.PAUSED){b.getMedia().play();}}}return true;}catch(e){V.sendEvent(c.api.events.JWPLAYER_ERROR,e);}return false;}function L(){try{if(b.playlist[b.item].levels[0].file.length>0){switch(b.state){case c.api.events.state.PLAYING:case c.api.events.state.BUFFERING:b.getMedia().pause();break;}}return true;}catch(e){V.sendEvent(c.api.events.JWPLAYER_ERROR,e);}return false;}function D(f){try{if(b.playlist[b.item].levels[0].file.length>0){if(typeof f!="number"){f=parseFloat(f);}switch(b.state){case c.api.events.state.IDLE:if(ab<0){ab=b.playlist[b.item].start;b.playlist[b.item].start=f;}O();break;case c.api.events.state.PLAYING:case c.api.events.state.PAUSED:case c.api.events.state.BUFFERING:b.seek(f);break;}}return true;}catch(e){V.sendEvent(c.api.events.JWPLAYER_ERROR,e);}return false;}function U(){try{if(b.playlist[b.item].levels[0].file.length>0&&b.state!=c.api.events.state.IDLE){b.getMedia().stop();}return true;}catch(e){V.sendEvent(c.api.events.JWPLAYER_ERROR,e);}return false;}function X(){try{if(b.playlist[b.item].levels[0].file.length>0){if(b.config.shuffle){P(I());}else{if(b.item+1==b.playlist.length){P(0);}else{P(b.item+1);}}}if(b.state!=c.api.events.state.PLAYING&&b.state!=c.api.events.state.BUFFERING){O();}return true;}catch(e){V.sendEvent(c.api.events.JWPLAYER_ERROR,e);}return false;}function Y(){try{if(b.playlist[b.item].levels[0].file.length>0){if(b.config.shuffle){P(I());}else{if(b.item===0){P(b.playlist.length-1);}else{P(b.item-1);}}}if(b.state!=c.api.events.state.PLAYING&&b.state!=c.api.events.state.BUFFERING){O();}return true;}catch(e){V.sendEvent(c.api.events.JWPLAYER_ERROR,e);}return false;}function I(){var e=null;if(b.playlist.length>1){while(e===null){e=Math.floor(Math.random()*b.playlist.length);if(e==b.item){e=null;}}}else{e=0;}return e;}function P(f){b.resetEventListeners();b.addGlobalListener(R);try{if(b.playlist[f].levels[0].file.length>0){var e=b.state;if(e!==c.api.events.state.IDLE){U();}b.item=f;N=true;b.setActiveMediaProvider(b.playlist[b.item]);V.sendEvent(c.api.events.JWPLAYER_PLAYLIST_ITEM,{index:f});if(e==c.api.events.state.PLAYING||e==c.api.events.state.BUFFERING||b.config.chromeless||Z.config.autostart===true){O();}}return true;}catch(g){V.sendEvent(c.api.events.JWPLAYER_ERROR,g);}return false;}function a(e){try{switch(typeof(e)){case"number":b.getMedia().volume(e);break;case"string":b.getMedia().volume(parseInt(e,10));break;}return true;}catch(f){V.sendEvent(c.api.events.JWPLAYER_ERROR,f);}return false;}function S(e){try{if(typeof e=="undefined"){b.getMedia().mute(!b.mute);}else{if(e.toString().toLowerCase()=="true"){b.getMedia().mute(true);}else{b.getMedia().mute(false);}}return true;}catch(f){V.sendEvent(c.api.events.JWPLAYER_ERROR,f);}return false;}function W(f,g){try{b.width=f;b.height=g;aa.resize(f,g);V.sendEvent(c.api.events.JWPLAYER_RESIZE,{width:b.width,height:b.height});return true;}catch(e){V.sendEvent(c.api.events.JWPLAYER_ERROR,e);}return false;}function F(e){try{if(typeof e=="undefined"){b.fullscreen=!b.fullscreen;aa.fullscreen(!b.fullscreen);}else{if(e.toString().toLowerCase()=="true"){b.fullscreen=true;aa.fullscreen(true);}else{b.fullscreen=false;aa.fullscreen(false);}}V.sendEvent(c.api.events.JWPLAYER_RESIZE,{width:b.width,height:b.height});V.sendEvent(c.api.events.JWPLAYER_FULLSCREEN,{fullscreen:e});return true;}catch(f){V.sendEvent(c.api.events.JWPLAYER_ERROR,f);}return false;}function J(f){try{U();b.loadPlaylist(f);P(b.item);return true;}catch(e){V.sendEvent(c.api.events.JWPLAYER_ERROR,e);}return false;}c.html5.controller.repeatoptions={LIST:"LIST",ALWAYS:"ALWAYS",SINGLE:"SINGLE",NONE:"NONE"};function Q(){b.resetEventListeners();b.addGlobalListener(R);switch(b.config.repeat.toUpperCase()){case c.html5.controller.repeatoptions.SINGLE:O();break;case c.html5.controller.repeatoptions.ALWAYS:if(b.item==b.playlist.length-1&&!b.config.shuffle){P(0);O();}else{X();}break;case c.html5.controller.repeatoptions.LIST:if(b.item==b.playlist.length-1&&!b.config.shuffle){P(0);}else{X();}break;}}this.play=O;this.pause=L;this.seek=D;this.stop=U;this.next=X;this.prev=Y;this.item=P;this.setVolume=a;this.setMute=S;this.resize=W;this.setFullscreen=F;this.load=J;};})(jwplayer);(function(b){b.html5.defaultSkin=function(){this.text='';this.xml=null;if(window.DOMParser){parser=new DOMParser();this.xml=parser.parseFromString(this.text,"text/xml");}else{this.xml=new ActiveXObject("Microsoft.XMLDOM");this.xml.async="false";this.xml.loadXML(this.text);}return this;};})(jwplayer);(function(b){_css=b.utils.css;_hide=function(a){_css(a,{display:"none"});};_show=function(a){_css(a,{display:"block"});};b.html5.display=function(O,a){var J={icons:true};var T=b.utils.extend({},J,a);var E=O;var Z={};var X;var M;var S;var D;var C;var N;var U;var P=E.skin.getComponentSettings("display").bufferrotation===undefined?15:parseInt(E.skin.getComponentSettings("display").bufferrotation,10);var Y=E.skin.getComponentSettings("display").bufferinterval===undefined?100:parseInt(E.skin.getComponentSettings("display").bufferinterval,10);var aa={display:{style:{cursor:"pointer",top:0,left:0,overflow:"hidden"},click:G},display_icon:{style:{cursor:"pointer",position:"absolute",top:((E.skin.getSkinElement("display","background").height-E.skin.getSkinElement("display","playIcon").height)/2),left:((E.skin.getSkinElement("display","background").width-E.skin.getSkinElement("display","playIcon").width)/2),border:0,margin:0,padding:0,zIndex:3}},display_iconBackground:{style:{cursor:"pointer",position:"absolute",top:((M-E.skin.getSkinElement("display","background").height)/2),left:((X-E.skin.getSkinElement("display","background").width)/2),border:0,backgroundImage:(["url(",E.skin.getSkinElement("display","background").src,")"]).join(""),width:E.skin.getSkinElement("display","background").width,height:E.skin.getSkinElement("display","background").height,margin:0,padding:0,zIndex:2}},display_image:{style:{display:"none",width:X,height:M,position:"absolute",cursor:"pointer",left:0,top:0,margin:0,padding:0,textDecoration:"none",zIndex:1}},display_text:{style:{zIndex:4,position:"relative",opacity:0.8,backgroundColor:parseInt("000000",16),color:parseInt("ffffff",16),textAlign:"center",fontFamily:"Arial,sans-serif",padding:"0 5px",fontSize:14}}};E.jwAddEventListener(b.api.events.JWPLAYER_PLAYER_STATE,R);E.jwAddEventListener(b.api.events.JWPLAYER_MEDIA_MUTE,R);E.jwAddEventListener(b.api.events.JWPLAYER_PLAYLIST_ITEM,R);E.jwAddEventListener(b.api.events.JWPLAYER_ERROR,H);L();function L(){Z.display=I("div","display");Z.display_text=I("div","display_text");Z.display.appendChild(Z.display_text);Z.display_image=I("img","display_image");Z.display_image.onerror=function(c){_hide(Z.display_image);};Z.display_image.onload=Q;Z.display_icon=I("div","display_icon");Z.display_iconBackground=I("div","display_iconBackground");Z.display.appendChild(Z.display_image);Z.display_iconBackground.appendChild(Z.display_icon);Z.display.appendChild(Z.display_iconBackground);ab();}this.getDisplayElement=function(){return Z.display;};this.resize=function(c,d){X=c;M=d;_css(Z.display,{width:c,height:d});_css(Z.display_text,{width:(c-10),top:((M-Z.display_text.getBoundingClientRect().height)/2)});_css(Z.display_iconBackground,{top:((M-E.skin.getSkinElement("display","background").height)/2),left:((X-E.skin.getSkinElement("display","background").width)/2)});V();R({});};this.show=function(){_show(Z.display_icon);_show(Z.display_iconBackground);};this.hide=function(){K();};function Q(c){S=Z.display_image.naturalWidth;D=Z.display_image.naturalHeight;V();}function V(){b.utils.stretch(E.jwGetStretching(),Z.display_image,X,M,S,D);}function I(e,c){var d=document.createElement(e);d.id=E.id+"_jwplayer_"+c;_css(d,aa[c].style);return d;}function ab(){for(var c in Z){if(aa[c].click!==undefined){Z[c].onclick=aa[c].click;}}}function G(c){if(typeof c.preventDefault!="undefined"){c.preventDefault();}else{c.returnValue=false;}if(E.jwGetState()!=b.api.events.state.PLAYING){E.jwPlay();}else{E.jwPause();}}function W(c){if(U||!T.icons){K();return;}_show(Z.display_iconBackground);Z.display_icon.style.backgroundImage=(["url(",E.skin.getSkinElement("display",c).src,")"]).join("");_css(Z.display_icon,{display:"block",width:E.skin.getSkinElement("display",c).width,height:E.skin.getSkinElement("display",c).height,top:(E.skin.getSkinElement("display","background").height-E.skin.getSkinElement("display",c).height)/2,left:(E.skin.getSkinElement("display","background").width-E.skin.getSkinElement("display",c).width)/2});if(E.skin.getSkinElement("display",c+"Over")!==undefined){Z.display_icon.onmouseover=function(d){Z.display_icon.style.backgroundImage=["url(",E.skin.getSkinElement("display",c+"Over").src,")"].join("");};Z.display_icon.onmouseout=function(d){Z.display_icon.style.backgroundImage=["url(",E.skin.getSkinElement("display",c).src,")"].join("");};}else{Z.display_icon.onmouseover=null;Z.display_icon.onmouseout=null;}}function K(){_hide(Z.display_icon);_hide(Z.display_iconBackground);}function H(c){U=true;K();Z.display_text.innerHTML=c.error;_show(Z.display_text);Z.display_text.style.top=((M-Z.display_text.getBoundingClientRect().height)/2)+"px";}function F(){var c=Z.display_image;Z.display_image=I("img","display_image");Z.display_image.onerror=function(d){_hide(Z.display_image);};Z.display_image.onload=Q;Z.display.replaceChild(Z.display_image,c);}function R(c){if((c.type==b.api.events.JWPLAYER_PLAYER_STATE||c.type==b.api.events.JWPLAYER_PLAYLIST_ITEM)&&U){U=false;_hide(Z.display_text);}if(N!==undefined){clearInterval(N);N=null;b.utils.animations.rotate(Z.display_icon,0);}switch(E.jwGetState()){case b.api.events.state.BUFFERING:W("bufferIcon");C=0;N=setInterval(function(){C+=P;b.utils.animations.rotate(Z.display_icon,C%360);},Y);W("bufferIcon");break;case b.api.events.state.PAUSED:if(E.jwGetPlaylist()[E.jwGetItem()].provider!="sound"){_css(Z.display_image,{background:"transparent no-repeat center center"});}W("playIcon");break;case b.api.events.state.IDLE:if(E.jwGetPlaylist()[E.jwGetItem()].image){_css(Z.display_image,{display:"block"});Z.display_image.src=b.utils.getAbsolutePath(E.jwGetPlaylist()[E.jwGetItem()].image);}else{F();}W("playIcon");break;default:if(E.jwGetMute()&&T.showmute){if(E.jwGetPlaylist()[E.jwGetItem()].provider!="sound"){F();}W("muteIcon");}else{if(E.jwGetPlaylist()[E.jwGetItem()].provider!="sound"){F();}_hide(Z.display_iconBackground);_hide(Z.display_icon);}break;}}return this;};})(jwplayer);(function(b){_css=b.utils.css;b.html5.dock=function(o,s){function p(){return{align:b.html5.view.positions.RIGHT};}var a=b.utils.extend({},p(),s);if(a.align=="FALSE"){return;}var n={};var t=[];var r;var q;var l=document.createElement("div");l.id=o.id+"_jwplayer_dock";this.getDisplayElement=function(){return l;};this.setButton=function(e,d,c,f){if(!d&&n[e]){b.utils.arrays.remove(t,e);l.removeChild(n[e].div);delete n[e];}else{if(d){if(!n[e]){n[e]={};}n[e].handler=d;n[e].outGraphic=c;n[e].overGraphic=f;if(!n[e].div){t.push(e);n[e].div=document.createElement("div");n[e].div.style.position="relative";l.appendChild(n[e].div);n[e].div.appendChild(document.createElement("img"));n[e].div.childNodes[0].style.position="absolute";n[e].div.childNodes[0].style.left=0;n[e].div.childNodes[0].style.top=0;n[e].div.childNodes[0].style.zIndex=10;n[e].div.childNodes[0].style.cursor="pointer";n[e].div.appendChild(document.createElement("img"));n[e].div.childNodes[1].style.position="absolute";n[e].div.childNodes[1].style.left=0;n[e].div.childNodes[1].style.top=0;if(o.skin.getSkinElement("dock","button")){n[e].div.childNodes[1].src=o.skin.getSkinElement("dock","button").src;}n[e].div.childNodes[1].style.zIndex=9;n[e].div.childNodes[1].style.cursor="pointer";n[e].div.onmouseover=function(){if(n[e].overGraphic){n[e].div.childNodes[0].src=n[e].overGraphic;}if(o.skin.getSkinElement("dock","buttonOver")){n[e].div.childNodes[1].src=o.skin.getSkinElement("dock","buttonOver").src;}};n[e].div.onmouseout=function(){if(n[e].outGraphic){n[e].div.childNodes[0].src=n[e].outGraphic;}if(o.skin.getSkinElement("dock","button")){n[e].div.childNodes[1].src=o.skin.getSkinElement("dock","button").src;}};if(n[e].overGraphic){n[e].div.childNodes[0].src=n[e].overGraphic;}if(n[e].outGraphic){n[e].div.childNodes[0].src=n[e].outGraphic;}if(o.skin.getSkinElement("dock","button")){n[e].div.childNodes[1].src=o.skin.getSkinElement("dock","button").src;}}if(d){n[e].div.onclick=function(g){g.preventDefault();b(o.id).callback(e);if(n[e].overGraphic){n[e].div.childNodes[0].src=n[e].overGraphic;}if(o.skin.getSkinElement("dock","button")){n[e].div.childNodes[1].src=o.skin.getSkinElement("dock","button").src;}};}}}m(r,q);};function m(j,d){r=j;q=d;if(t.length>0){var h=10;var f=j-o.skin.getSkinElement("dock","button").width-h;var i=h;var g=-1;if(a.align==b.html5.view.positions.LEFT){g=1;f=h;}for(var c=0;c((e+1)*d)){i=((e+1)*d)+h;e=Math.floor(i/d);}n[t[c]].div.style.top=(i%d)+"px";n[t[c]].div.style.left=(f+(o.skin.getSkinElement("dock","button").width+h)*e*g)+"px";i+=o.skin.getSkinElement("dock","button").height+h;}}}this.resize=m;this.show=function(){_css(l,{display:"block"});};this.hide=function(){_css(l,{display:"none"});};return this;};})(jwplayer);(function(b){b.html5.eventdispatcher=function(e,a){var f=new b.events.eventdispatcher(a);b.utils.extend(this,f);this.sendEvent=function(d,c){if(c===undefined){c={};}b.utils.extend(c,{id:e,version:b.version,type:d});f.sendEvent(d,c);};};})(jwplayer);(function(d){var c={prefix:"",file:"",link:"",margin:8,out:0.5,over:1,timeout:3,hide:true,position:"bottom-left"};_css=d.utils.css;d.html5.logo=function(x,w){var a=x;var v;var A;var G;z();function z(){t();F();D();}function t(){if(c.prefix){var e=x.version.split(/\W/).splice(0,2).join("/");if(c.prefix.indexOf(e)<0){c.prefix+=e+"/";}}if(w.position==d.html5.view.positions.OVER){w.position=c.position;}A=d.utils.extend({},c,w);}function F(){G=document.createElement("img");G.id=a.id+"_jwplayer_logo";G.style.display="none";G.onload=function(e){_css(G,b());a.jwAddEventListener(d.api.events.JWPLAYER_PLAYER_STATE,H);E();};if(!A.file){return;}if(A.file.indexOf("http://")===0){G.src=A.file;}else{G.src=A.prefix+A.file;}}if(!A.file){return;}this.resize=function(e,f){};this.getDisplayElement=function(){return G;};function D(){if(A.link){G.onmouseover=B;G.onmouseout=E;G.onclick=u;}else{this.mouseEnabled=false;}}function u(e){if(typeof e!="undefined"){e.stopPropagation();}a.jwPause();a.jwSetFullscreen(false);if(A.link){window.open(A.link,"_blank");}return;}function E(e){if(A.link){G.style.opacity=A.out;}return;}function B(e){if(A.hide){G.style.opacity=A.over;}return;}function b(){var e={textDecoration:"none",position:"absolute",cursor:"pointer"};e.display=A.hide?"none":"block";var f=A.position.toLowerCase().split("-");for(var g in f){e[f[g]]=A.margin;}return e;}function y(){if(A.hide){G.style.display="block";G.style.opacity=0;d.utils.fadeTo(G,A.out,0.1,parseFloat(G.style.opacity));v=setTimeout(function(){C();},A.timeout*1000);}}function C(){if(A.hide){d.utils.fadeTo(G,0,0.1,parseFloat(G.style.opacity));}}function H(e){if(e.newstate==d.api.events.state.BUFFERING){clearTimeout(v);y();}}return this;};})(jwplayer);(function(e){var f={ended:e.api.events.state.IDLE,playing:e.api.events.state.PLAYING,pause:e.api.events.state.PAUSED,buffering:e.api.events.state.BUFFERING};var d=e.utils.css;e.html5.mediavideo=function(ay,X){var T={abort:aj,canplay:aq,canplaythrough:aq,durationchange:am,emptied:aj,ended:aq,error:ar,loadeddata:am,loadedmetadata:am,loadstart:aq,pause:aq,play:Q,playing:aq,progress:ab,ratechange:aj,seeked:aq,seeking:aq,stalled:aq,suspend:aq,timeupdate:Q,volumechange:aj,waiting:aq,canshowcurrentframe:aj,dataunavailable:aj,empty:aj,load:az,loadedfirstframe:aj};var S=new e.html5.eventdispatcher();e.utils.extend(this,S);var aw=ay;var af=X;var W;var U;var aA=e.api.events.state.IDLE;var aa=null;var ap;var ax=0;var ac=false;var al=false;var b;var c;var av=[];var a;var Y=false;function ah(){return aA;}function az(g){}function aj(g){}function aq(g){if(f[g.type]){ak(f[g.type]);}}function ak(i){if(Y){return;}if(ap){i=e.api.events.state.IDLE;}if(i==e.api.events.state.PAUSED&&aA==e.api.events.state.IDLE){return;}if(i==e.api.events.state.PLAYING&&aA==e.api.events.state.IDLE){ak(e.api.events.state.BUFFERING);S.sendEvent(e.api.events.JWPLAYER_MEDIA_BUFFER,{bufferPercent:aw.buffer});ad();return;}if(aA!=i){var h=aA;aw.state=i;aA=i;var g=false;if(i==e.api.events.state.IDLE){an();if(aw.position>=aw.duration&&(aw.position>0||aw.duration>0)){g=true;}if(af.style.display!="none"&&!aw.config.chromeless){af.style.display="none";}}S.sendEvent(e.api.events.JWPLAYER_PLAYER_STATE,{oldstate:h,newstate:i});if(g){S.sendEvent(e.api.events.JWPLAYER_MEDIA_COMPLETE);}}ap=false;}function am(h){var g={height:h.target.videoHeight,width:h.target.videoWidth,duration:Math.round(h.target.duration*10)/10};if(aw.duration===0||isNaN(aw.duration)){aw.duration=Math.round(h.target.duration*10)/10;}aw.playlist[aw.item]=e.utils.extend(aw.playlist[aw.item],g);S.sendEvent(e.api.events.JWPLAYER_MEDIA_META,{metadata:g});}function Q(g){if(ap){return;}if(g!==undefined&&g.target!==undefined){if(aw.duration===0||isNaN(aw.duration)){aw.duration=Math.round(g.target.duration*10)/10;}if(!ac&&af.readyState>0){ak(e.api.events.state.PLAYING);}if(aA==e.api.events.state.PLAYING){if(!ac&&af.readyState>0){ac=true;try{af.currentTime=aw.playlist[aw.item].start;}catch(h){}af.volume=aw.volume/100;af.muted=aw.mute;}aw.position=Math.round(g.target.currentTime*10)/10;S.sendEvent(e.api.events.JWPLAYER_MEDIA_TIME,{position:g.target.currentTime,duration:g.target.duration});}}ab(g);}function ad(){if(W===false&&aA==e.api.events.state.BUFFERING){S.sendEvent(e.api.events.JWPLAYER_MEDIA_BUFFER_FULL);W=true;}}function V(){var g=(av[av.length-1]-av[0])/av.length;a=setTimeout(function(){if(!U){ab({lengthComputable:true,loaded:1,total:1});}},g*10);}function ab(g){var h,i;if(g!==undefined&&g.lengthComputable&&g.total){ao();h=g.loaded/g.total*100;i=h/100*(aw.duration-af.currentTime);if(500)){maxBufferIndex=0;if(maxBufferIndex>=0){h=af.buffered.end(maxBufferIndex)/af.duration*100;i=af.buffered.end(maxBufferIndex)-af.currentTime;}}}ad();if(!U){if(h==100&&U===false){U=true;}if(h!==null&&(h>aw.buffer)){aw.buffer=Math.round(h);S.sendEvent(e.api.events.JWPLAYER_MEDIA_BUFFER,{bufferPercent:Math.round(h)});}}}function ag(){if(aa===null){aa=setInterval(function(){Q();},100);}}function an(){clearInterval(aa);aa=null;}function ar(g){var h="There was an error: ";if((g.target.error&&g.target.tagName.toLowerCase()=="video")||g.target.parentNode.error&&g.target.parentNode.tagName.toLowerCase()=="video"){var i=g.target.error===undefined?g.target.parentNode.error:g.target.error;switch(i.code){case i.MEDIA_ERR_ABORTED:h="You aborted the video playback: ";break;case i.MEDIA_ERR_NETWORK:h="A network error caused the video download to fail part-way: ";break;case i.MEDIA_ERR_DECODE:h="The video playback was aborted due to a corruption problem or because the video used features your browser did not support: ";break;case i.MEDIA_ERR_SRC_NOT_SUPPORTED:h="The video could not be loaded, either because the server or network failed or because the format is not supported: ";break;default:h="An unknown error occurred: ";break;}}else{if(g.target.tagName.toLowerCase()=="source"){c--;if(c>0){return;}h="The video could not be loaded, either because the server or network failed or because the format is not supported: ";}else{e.utils.log("Erroneous error received. Continuing...");return;}}ai();h+=au();Y=true;S.sendEvent(e.api.events.JWPLAYER_ERROR,{error:h});return;}function au(){var h="";for(var i in b.levels){var j=b.levels[i];var g=af.ownerDocument.createElement("source");h+=e.utils.getAbsolutePath(j.file);if(i<(b.levels.length-1)){h+=", ";}}return h;}this.getDisplayElement=function(){return af;};this.play=function(){if(aA!=e.api.events.state.PLAYING){if(af.style.display!="block"){af.style.display="block";}af.play();ag();if(W){ak(e.api.events.state.PLAYING);}}};this.pause=function(){af.pause();ak(e.api.events.state.PAUSED);};this.seek=function(g){if(!(aw.duration===0||isNaN(aw.duration))&&!(aw.position===0||isNaN(aw.position))){af.currentTime=g;af.play();}};function ai(){af.pause();af.removeAttribute("src");var h=af.getElementsByTagName("source");for(var g=0;g=0){g=i.substr(i.indexOf("/v/")+3);}else{if(i.indexOf("youtu.be")>=0){g=i.substr(i.indexOf("youtu.be/")+9);}else{g=i;}}}if(g.indexOf("?")>-1){g=g.substr(0,g.indexOf("?"));}if(g.indexOf("&")>-1){g=g.substr(0,g.indexOf("&"));}return g;}this.embed=R;return this;};})(jwplayer);(function(jwplayer){var _configurableStateVariables=["width","height","start","duration","volume","mute","fullscreen","item","plugins","stretching"];jwplayer.html5.model=function(api,container,options){var _api=api;var _container=container;var _model={id:_container.id,playlist:[],state:jwplayer.api.events.state.IDLE,position:0,buffer:0,config:{width:480,height:320,item:-1,skin:undefined,file:undefined,image:undefined,start:0,duration:0,bufferlength:5,volume:90,mute:false,fullscreen:false,repeat:"none",stretching:jwplayer.utils.stretching.UNIFORM,autostart:false,debug:undefined,screencolor:undefined}};var _media;var _eventDispatcher=new jwplayer.html5.eventdispatcher();var _components=["display","logo","controlbar","dock"];jwplayer.utils.extend(_model,_eventDispatcher);for(var option in options){if(typeof options[option]=="string"){var type=/color$/.test(option)?"color":null;options[option]=jwplayer.utils.typechecker(options[option],type);}var config=_model.config;var path=option.split(".");for(var edge in path){if(edge==path.length-1){config[path[edge]]=options[option];}else{if(config[path[edge]]===undefined){config[path[edge]]={};}config=config[path[edge]];}}}for(var index in _configurableStateVariables){var configurableStateVariable=_configurableStateVariables[index];_model[configurableStateVariable]=_model.config[configurableStateVariable];}var pluginorder=_components.concat([]);if(_model.plugins!==undefined){if(typeof _model.plugins=="string"){var userplugins=_model.plugins.split(",");for(var userplugin in userplugins){if(typeof userplugins[userplugin]=="string"){pluginorder.push(userplugins[userplugin].replace(/^\s+|\s+$/g,""));}}}}if(typeof _model.config.chromeless=="undefined"&&jwplayer.utils.isIOS()){_model.config.chromeless=true;}if(_model.config.chromeless){pluginorder=["logo"];if(_model.config.repeat===undefined||_model.config.repeat=="none"){_model.config.repeat="list";}}_model.plugins={order:pluginorder,config:{},object:{}};if(typeof _model.config.components!="undefined"){for(var component in _model.config.components){_model.plugins.config[component]=_model.config.components[component];}}for(var pluginIndex in _model.plugins.order){var pluginName=_model.plugins.order[pluginIndex];var pluginConfig=_model.config[pluginName]===undefined?{}:_model.config[pluginName];_model.plugins.config[pluginName]=_model.plugins.config[pluginName]===undefined?pluginConfig:jwplayer.utils.extend(_model.plugins.config[pluginName],pluginConfig);if(typeof _model.plugins.config[pluginName].position=="undefined"){_model.plugins.config[pluginName].position=jwplayer.html5.view.positions.OVER;}else{_model.plugins.config[pluginName].position=_model.plugins.config[pluginName].position.toString().toUpperCase();}}if(typeof _model.plugins.config.dock!="undefined"){if(typeof _model.plugins.config.dock!="object"){var position=_model.plugins.config.dock.toString().toUpperCase();_model.plugins.config.dock={position:position};}if(typeof _model.plugins.config.dock.position!="undefined"){_model.plugins.config.dock.align=_model.plugins.config.dock.position;_model.plugins.config.dock.position=jwplayer.html5.view.positions.OVER;}}_model.loadPlaylist=function(arg,ready){var input;if(typeof arg=="string"){try{input=eval(arg);}catch(err){input=arg;}}else{input=arg;}var config;switch(jwplayer.utils.typeOf(input)){case"object":config=input;break;case"array":config={playlist:input};break;default:config={file:input};break;}_model.playlist=new jwplayer.html5.playlist(config);if(_model.config.shuffle){_model.item=_getShuffleItem();}else{if(_model.config.item>=_model.playlist.length){_model.config.item=_model.playlist.length-1;}else{if(_model.config.item<0){_model.config.item=0;}}_model.item=_model.config.item;}if(!ready){_eventDispatcher.sendEvent(jwplayer.api.events.JWPLAYER_PLAYLIST_LOADED,{playlist:_model.playlist});}_model.setActiveMediaProvider(_model.playlist[_model.item]);};function _getShuffleItem(){var result=null;if(_model.playlist.length>1){while(result===null){result=Math.floor(Math.random()*_model.playlist.length);if(result==_model.item){result=null;}}}else{result=0;}return result;}function forward(evt){if(evt.type==jwplayer.api.events.JWPLAYER_MEDIA_LOADED){_container=_media.getDisplayElement();}_eventDispatcher.sendEvent(evt.type,evt);}_model.setActiveMediaProvider=function(playlistItem){if(_media!==undefined){_media.resetEventListeners();}_media=new jwplayer.html5.mediavideo(_model,_container);_media.addGlobalListener(forward);if(_model.config.chromeless){_media.load(playlistItem);}return true;};_model.getMedia=function(){return _media;};_model.seek=function(pos){_eventDispatcher.sendEvent(jwplayer.api.events.JWPLAYER_MEDIA_SEEK,{position:_model.position,offset:pos});return _media.seek(pos);};_model.setupPlugins=function(){for(var plugin in _model.plugins.order){try{var pluginName=_model.plugins.order[plugin];if(jwplayer.html5[pluginName]!==undefined){_model.plugins.object[pluginName]=new jwplayer.html5[pluginName](_api,_model.plugins.config[pluginName]);}else{_model.plugins.order.splice(plugin,plugin+1);}}catch(err){jwplayer.utils.log("Could not setup "+pluginName);}}};return _model;};})(jwplayer);(function(b){b.html5.playlist=function(a){var e=[];if(a.playlist&&a.playlist instanceof Array&&a.playlist.length>0){for(var f in a.playlist){if(!isNaN(parseInt(f))){e.push(new b.html5.playlistitem(a.playlist[f]));}}}else{e.push(new b.html5.playlistitem(a));}return e;};})(jwplayer);(function(c){c.html5.playlistitem=function(b){var a={author:"",date:"",description:"",image:"",link:"",mediaid:"",tags:"",title:"",provider:"",file:"",streamer:"",duration:-1,start:0,currentLevel:-1,levels:[]};var f=c.utils.extend({},a,b);if(f.type){f.provider=f.type;delete f.type;}if(f.levels.length===0){f.levels[0]=new c.html5.playlistitemlevel(f);}if(!f.provider){f.provider=d(f.levels[0]);}else{f.provider=f.provider.toLowerCase();}return f;};function d(b){if(c.utils.isYouTube(b.file)){return"youtube";}else{var a=c.utils.extension(b.file);var h;if(a&&c.utils.extensionmap[a]){h=c.utils.extensionmap[a].html5;}else{if(b.type){h=b.type;}}if(h){var g=h.split("/")[0];if(g=="audio"){return"sound";}else{if(g=="video"){return g;}}}}return"";}})(jwplayer);(function(b){b.html5.playlistitemlevel=function(a){var e={file:"",streamer:"",bitrate:0,width:0};for(var f in e){if(a[f]!==undefined){e[f]=a[f];}}return e;};})(jwplayer);(function(b){b.html5.skin=function(){var a={};var d=false;this.load=function(f,c){new b.html5.skinloader(f,function(e){d=true;a=e;c();},function(){new b.html5.skinloader("",function(e){d=true;a=e;c();});});};this.getSkinElement=function(h,g){if(d){try{return a[h].elements[g];}catch(c){b.utils.log("No such skin component / element: ",[h,g]);}}return null;};this.getComponentSettings=function(c){if(d){return a[c].settings;}return null;};this.getComponentLayout=function(c){if(d){return a[c].layout;}return null;};};})(jwplayer);(function(b){b.html5.skinloader=function(B,t,y){var u={};var E=t;var x=y;var C=true;var z;var v=B;var a=false;function w(){if(typeof v!="string"||v===""){D(b.html5.defaultSkin().xml);}else{b.utils.ajax(b.utils.getAbsolutePath(v),function(d){try{if(d.responseXML!==null){D(d.responseXML);return;}}catch(c){}D(b.html5.defaultSkin().xml);},function(c){D(b.html5.defaultSkin().xml);});}}function D(n){var V=n.getElementsByTagName("component");if(V.length===0){return;}for(var q=0;q0){var k=l.getElementsByTagName("setting");for(var d=0;d0){var g=i.getElementsByTagName("group");for(var P=0;P